import { Ref, ref } from "vue";
import { GlobalThemeOverrides } from "naive-ui";
import { ysInstance } from "ys-ts";

export function useThemOverrides(): Ref<GlobalThemeOverrides> {
  // 通过单例管理 主题变量
  return ysInstance.Instance().getOrSetFunc("theme", () =>
    ref<GlobalThemeOverrides>({
      common: {
      },
    })
  );
}
